/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.srcptit.trainning.giangnd.btvn1;

import java.util.Scanner;

/**
 *
 * @author GIANG
 */
public class B6 {
    static boolean tn(int n) {
		int m = n, dao = 0;
		while (m > 0) {
			dao = dao * 10 + m % 10;
			m /= 10;
		}
		return n == dao;
	}

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n;
		System.out.println("n=");
		n = sc.nextInt();
		if (tn(n))
			System.out.println(n + " la so thuan nghich");
		else
			System.out.println(n + " k la so thuan nghich");
	}
}
